package smartcrud.spring.models.cms;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 
 * 
 */
public class Post implements Serializable{
	private Long id;//
	private String title;//
	private String content;//
	private Long categoryId;//
	private Long userId;//
	private Integer hit;//
	private Integer ding;//
	private Integer cai;//
	private String topicImageUrl;//
	private String source;//
	private Date createDate;//
	private Date updateDate;//
	
	private List<Attachment> attachments = new ArrayList<Attachment>();
	
	public Post(){}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return this.id;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getTitle() {
		return this.title;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getContent() {
		return this.content;
	}
	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}
	public Long getCategoryId() {
		return this.categoryId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public Long getUserId() {
		return this.userId;
	}
	public void setHit(Integer hit) {
		this.hit = hit;
	}
	public Integer getHit() {
		return this.hit;
	}
	public void setDing(Integer ding) {
		this.ding = ding;
	}
	public Integer getDing() {
		return this.ding;
	}
	public void setCai(Integer cai) {
		this.cai = cai;
	}
	public Integer getCai() {
		return this.cai;
	}
	
	public String getTopicImageUrl() {
		return topicImageUrl;
	}
	public void setTopicImageUrl(String topicImageUrl) {
		this.topicImageUrl = topicImageUrl;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public String getSource() {
		return this.source;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Date getCreateDate() {
		return this.createDate;
	}
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
	public Date getUpdateDate() {
		return this.updateDate;
	}
	public List<Attachment> getAttachments() {
		return attachments;
	}
	public void setAttachments(List<Attachment> attachments) {
		this.attachments = attachments;
	}
}